<?php
		$siteurl = get_bloginfo('template_url');
		$category = get_the_category();
		$nowcatid = $category[0]->cat_ID;
		$cat_name = $category[0]->cat_name;
		$cat_slug = $category[0]->category_nicename;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PRETTY WOMAN | the wise choice of charming lady,makes you more beautiful!</title>
<script language="javascript" type="text/javascript" src="<?php echo $siteurl?>/js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/ecmascript"  src="<?php echo $siteurl?>/js/js.js" ></script>
<script type="text/javascript">
	function DrawImage(ImgD,iwidth,iheight){       
		 var image=new Image();        
		 image.src=ImgD.src;        
		 if(image.width>0 && image.height>0){ 
			   if(image.width/image.height>= iwidth/iheight){
				   if(image.width>iwidth){ 
					    ImgD.width=iwidth;
					    ImgD.height=(image.height*iwidth)/image.width;
					}else{
					 ImgD.width=image.width;
					 ImgD.height=image.height;
					} 
					 }else{
						if(image.height>iheight){
						 ImgD.height=iheight;
						 ImgD.width=(image.width*iheight)/image.height;
					}else{
					ImgD.width=image.width;
					ImgD.height=image.height;
				}         

 }       
			    }   
		     }   
</script>
<link href="<?php echo $siteurl?>/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<span id="contborder"></span>
    <div id="container">
    	<img src="<?php echo $siteurl?>/images/logo.gif" id="logo" alt="PRETTY WOMAN" title="PRETTY WOMAN" />
        <div id="head">
        	<ul>
            	
            	<?php 
               if(is_home()){
		          	echo '<li id="nav_1" class="bianju2"><a href="http://www.uujog.com">Home</a></li>';
		        }else{
		      	  echo '<li id="nav_1" class="bianju"><a href="http://www.uujog.com">Home</a></li>';
		        }
				$nowcatid;
			
				$nowcatid = $_GET["nowcatid"];
            	  $categories = get_categories();
            	  	$navi = 1;
            	   foreach ($categories as $cat) {
            	     $navi +=1;
					    $catid = $cat->cat_ID;
					    $catname = $cat->name;
					    if($catname == 'Uncategorized'){
					    	continue;
			    	    }
			    
			     if($nowcatid == $catid){
            	?>
            	<li id="nav_<?php echo $navi;?>" class="bianju2"><a href=""><?php echo $catname ?></a></li>
            	<?php }else{?>
                <li id="nav_<?php echo $navi;?>" class="bianju"><a href="<?php bloginfo('url');?>/?page_id=355&nowcatid=<?php echo $catid ?>"><?php echo $catname ?></a></li>
                <?php 
            	   }
            	   }
                ?>
            </ul>
        </div>
        <?php 
        if(!is_single()){
        ?>
        <div id="cont">
        	<ul  id="jsNav">
            	<a id="next" ><img src="<?php echo $siteurl?>/images/index_huanright.gif" id="huan_right" width="24" height="23" /></a>
            	<li class="trigger imgSelected">1</li>
                <li class="trigger">2</li>
                <li class="trigger">3</li>
                <li class="trigger">4</li>
                <li class="trigger">5</li>
                <li class="trigger">6</li>
                <li class="trigger">7</li>
                <a id="prev"><img src="<?php echo $siteurl?>/images/index_huanleft.gif" id="huan_left" width="21" height="21" /></a>
            </ul>
            <div id="contimg">
			 <a href="http://www.uujog.com/?p=169&nowcatid=4" ><img src="<?php echo $siteurl?>/images/1.jpg" class="huanimg" width="974" height="484" alt="Braided Topknot II" title="Braided Topknot II" /></a>
			 <a href="http://www.uujog.com/?p=347&nowcatid=4" ><img src="<?php echo $siteurl?>/images/2.jpg" class="huanimg" width="974" height="484" alt="make a healthy looking skin everyday" title="make a healthy looking skin everyday" /></a>
			 <a href="http://www.uujog.com/?p=103&nowcatid=3" ><img src="<?php echo $siteurl?>/images/3.jpg" class="huanimg" width="974" height="484" alt="Romantic Beach Wedding" title="Romantic Beach Wedding" /></a>
			 <a href="http://www.uujog.com/?p=415&nowcatid=3" ><img src="<?php echo $siteurl?>/images/4.jpg" class="huanimg" width="974" height="484" alt="Let a Man Tell You How to Find a Sexy Bra" title="Let a Man Tell You How to Find a Sexy Bra" /></a>
			 <a href="http://www.uujog.com/?p=414&nowcatid=6" ><img src="<?php echo $siteurl?>/images/5.jpg" class="huanimg" width="974" height="484" alt="100 Little things that Renew Your Faith of Love" title="100 Little things that Renew Your Faith of Love" /></a>
			 <a href="http://www.uujog.com/?p=434&nowcatid=5" ><img src="<?php echo $siteurl?>/images/6.jpg" class="huanimg" width="974" height="484" alt="Women’s Health: about Your Ladyparts" title="Women’s Health: about Your Ladyparts" /></a>
			 <a href="http://www.uujog.com/?p=261&nowcatid=4" ><img src="<?php echo $siteurl?>/images/7.jpg" class="huanimg" width="974" height="484" alt="Essential oil bath" title="Essential oil bath" /></a>
            </div>
        </div>
        <?php }?>